import*as e from"../../core/i18n/i18n.js";import*as t from"../../ui/legacy/legacy.js";const o={coverage:"Coverage",showCoverage:"Show Coverage",instrumentCoverage:"Instrument coverage",stopInstrumentingCoverageAndShow:"Stop instrumenting coverage and show results",startInstrumentingCoverageAnd:"Start instrumenting coverage and reload page",reloadPage:"Reload page"},a=e.i18n.registerUIStrings("panels/coverage/coverage-meta.ts",o),i=e.i18n.getLazilyComputedLocalizedString.bind(void 0,a);let n;async function r(){return n||(n=await import("./coverage.js")),n}t.ViewManager.registerViewExtension({location:"drawer-view",id:"coverage",title:i(o.coverage),commandPrompt:i(o.showCoverage),persistence:"closeable",order:100,loadView:async()=>(await r()).CoverageView.CoverageView.instance()}),t.ActionRegistration.registerActionExtension({actionId:"coverage.toggle-recording",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,loadActionDelegate:async()=>(await r()).CoverageView.ActionDelegate.instance(),category:t.ActionRegistration.ActionCategory.PERFORMANCE,options:[{value:!0,title:i(o.instrumentCoverage)},{value:!1,title:i(o.stopInstrumentingCoverageAndShow)}]}),t.ActionRegistration.registerActionExtension({actionId:"coverage.start-with-reload",iconClass:"refresh",loadActionDelegate:async()=>(await r()).CoverageView.ActionDelegate.instance(),category:t.ActionRegistration.ActionCategory.PERFORMANCE,title:i(o.startInstrumentingCoverageAnd)}),t.ActionRegistration.registerActionExtension({actionId:"coverage.reload",iconClass:"refresh",loadActionDelegate:async()=>(await r()).CoverageView.ActionDelegate.instance(),category:t.ActionRegistration.ActionCategory.PERFORMANCE,title:i(o.reloadPage)});
